package com.yn.common.config.swagger;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
/**
 * @description:    读取swagger相关配置信息
 * @author: 叶甯
 * @create: 2022/9/9 16:59
 * @since: 1.0.0
 * @copyright (C), 2022, https://gitee.com/johnny .All rights reserved.
 */
@Data
@ConfigurationProperties(prefix = "config.swagger")
public class SwaggerProperties {

    private Map<String, DockerInfo> docket = new LinkedHashMap<>();

    @Data
    public static class DockerInfo {
        /* 当前组中文名称 */
        private String group;
        /* 当前组说明 */
        private String description;
        /* 包含的包列表 */
        private List<String> include = new ArrayList<>();
    }
}
